from TollAll import tool
from net_project_zizhu.zizhuCommPage import zizhuCommPage
from page.net_project_tools.net_comm_page import NetCommPage
import user_data
import unittest
import warnings

from test_case.net_comm_test import NetCommTest


class zizhuCommTest(unittest.TestCase,tool):

    def setUp(self):
        warnings.simplefilter('ignore', ResourceWarning)

    def tearDown(self):
        self.page.logout()

    def test_net_comm(self):
        """交流工具"""

        self.test_Send_comm()   #这次版本更新只有自主选课项目有改动


    def test_Cao_gao(self):
        """学生交流草稿"""
        self.page = zizhuCommPage()
        self.page.login(*user_data.zizhu_project_admin)
        self.page.enter_project()
        self.page.enter_tools('交流')
        self.page.view_comment_comm()




if __name__ == '__main__':
    unittest.main()
